<%@page import="com.ambow.entity.User"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<style type="text/css">
div.basic-grey {
	margin-left: auto;
	margin-right: auto;
	max-width: 500px;	
	padding: 25px 15px 25px 10px;
	font: 12px Georgia, "Times New Roman", Times, serif;	
	text-shadow: 1px 1px 1px #FFF;
	border: 1px solid #E4E4E4;
	border-top-left-radius:15px;
	border-top-right-radius:15px;
	border-bottom-right-radius:15px;
	border-bottom-left-radius:15px;
      box-shadow: 0 0 0 10px rgba(255, 235,205, 0.7);
}

div.basic-grey h1 {
	font-size: 25px;
	padding: 0px 0px 10px 40px;
	display: block;
	border-bottom: 1px solid #E4E4E4;
	margin: -10px -15px 30px -10px;;
	color: #888;
}

div.basic-grey h1>span {
	display: block;
	font-size: 11px;
}

div.basic-grey label {
	display: block;
	margin: 0px;
}

div.basic-grey label>span {
	float: left;
	width: 20%;
	text-align: right;
	padding-right: 10px;
	margin-top: 10px;
	color: #888;
}

div.basic-grey input[type="text"], .basic-grey input[type="email"],
	.basic-grey textarea, .basic-grey select {
	border: 1px solid #DADADA;
	color: #888;
	height: 30px;
	margin-bottom: 16px;
	margin-right: 6px;
	margin-top: 2px;
	outline: 0 none;
	padding: 3px 3px 3px 5px;
	width: 70%;
	font-size: 12px;
	line-height: 15px;
	box-shadow: inset 0px 1px 4px #ECECEC;
	-moz-box-shadow: inset 0px 1px 4px #ECECEC;
	-webkit-box-shadow: inset 0px 1px 4px #ECECEC;
}

div.basic-grey textarea {
	padding: 5px 3px 3px 5px;
}

div.basic-grey select {
	background: #FFF url('down-arrow.png') no-repeat right;
	background: #FFF url('down-arrow.png') no-repeat right);
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	text-indent: 0.01px;
	text-overflow: '';
	width: 70%;
	height: 35px;
	line-height: 25px;
}

div.basic-grey textarea {
	height: 100px;
}

div.basic-grey .button {
	background: #E27575;
	border: none;
	padding: 10px 25px 10px 25px;
	color: #FFF;
	box-shadow: 1px 1px 5px #B6B6B6;
	border-radius: 3px;
	text-shadow: 1px 1px 1px #9E3F3F;
	cursor: pointer;
}

div.basic-grey .button:hover {
	background: #CF7A7A
}
</style>
<script>
	function yan(){
		if(frm.name.value == ""){
			alert("回复标题不能为空!");
			document.frm.name.focus();
			return (false);
		}else if(frm.message.value == ""){
			alert("回复内容不能为空!");
			document.frm.message.focus();
			return (false);
		}
	}
</script>
</head>
<body>
	<%User user = (User)session.getAttribute("login"); 
	  if(user==null){%>
		 <%response.sendRedirect("account.jsp"); %>
	<%}
	%>
	
<div style="text-align: center; margin-top: 140px" class="basic-grey">
	<form action="<%=path%>/Postservlet?status=add&id=<%=request.getParameter("id") %>"  method="post"
			class="STYLE-NAME" name="frm" onsubmit="return yan()">
			<h1>
				请回复 <span>请编写您回复的信息</span>
			</h1>
			<label> 
			<span>回复标题 :</span> 
			<input id="name" type="text" name="title" placeholder="Your Title" />
			</label> 
			<label>
			 <span>回复内容 :
			</span> <textarea id="message" name="content" placeholder="Your Message to Us"></textarea>
			</label> 
			<label> 
			<span>&nbsp;</span> 
			<input type="submit" class="button" value="提交" /> 
			<input type="reset" class="button"
				value="重置" />
			</label>
		
		</form><br>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		
		
	<a href="<%=path%>/LeaveMessageServlet?status=all&currentPage=0">返回</a>
		</div>
</body>
</html>